﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	
	<!-- Resource dictionary entries should be defined here. -->
	<ControlTemplate x:Key="MainWindowTemplate" TargetType="{x:Type Window}">
		<Grid>
			<Rectangle VerticalAlignment="Stretch" Height="Auto" Stroke="#FF000000" StrokeThickness="0" RadiusX="3" RadiusY="3" x:Name="rectangle" Fill="{DynamicResource MainBrush}"/>
			<ContentPresenter Margin="3,3,3,3"/>
			<Rectangle VerticalAlignment="Stretch" Height="Auto" Fill="{x:Null}" StrokeThickness="2" RadiusX="{Binding Path=RadiusX, ElementName=rectangle, Mode=Default}" RadiusY="{Binding Path=RadiusY, ElementName=rectangle, Mode=Default}" Stroke="{DynamicResource OutsideEdge}"/>
		</Grid>
	</ControlTemplate>
	<Style x:Key="MainWindow" TargetType="{x:Type Window}">
        <Setter Property="Template" Value="{StaticResource MainWindowTemplate}"/>
		<Setter Property="AllowsTransparency" Value="True"/>
		<Setter Property="WindowStyle" Value="None"/>
	</Style>
	
</ResourceDictionary>